﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace 小区物业管理系统
{
    public partial class 我的物业费1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void GridView2_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {

            小区物业管理系统DataContext db = new 小区物业管理系统DataContext();
            var res = from r in db.我的物业费
                      where r.用户编号 == TextBox1.Text
                      select r;
            GridView1.DataSource = res;
            GridView1.DataBind();
        }
    }
}